//
//  NYDetailExerciseSubmitCell.m
//  NiuWaJiaoYu
//
//  Created by MinLison on 2018/1/10.
//  Copyright © 2018年 niuwaketang. All rights reserved.
//

#import "NYDetailExerciseSubmitCell.h"
@interface NYDetailExerciseSubmitCell ()

@end
@implementation NYDetailExerciseSubmitCell
+ (CGFloat)heightForObject:(id)object identifier:(NSString *)identifier atIndexPath:(NSIndexPath *)indexPath tableView:(UITableView *)tableView
{
        return __WGHeight(101);
}
- (void)setupView
{
        [super setupView];
        self.contentView.backgroundColor = UIColorForBackground;
        [self.contentView addSubview:self.submitBtn];
        [self.submitBtn mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.edges.equalTo(self.contentView).valueOffset([NSValue valueWithUIEdgeInsets:UIEdgeInsetsMake(25, 15, 31, 15)]);
                make.height.mas_equalTo(__WGHeight(45));
        }];
}
- (QMUIGhostButton *)submitBtn
{
        if (_submitBtn == nil) {
                _submitBtn = [[QMUIGhostButton alloc] qmui_initWithImage:nil title:@"提交"];
                _submitBtn.ghostColor = [UIColor clearColor];
                _submitBtn.cornerRadius = 23;
                [_submitBtn setTitleColor:[UIColor whiteColor] forState:(UIControlStateNormal)];
                _submitBtn.titleLabel.font = WGSystem17Font;
                _submitBtn.backgroundColor = UIColorHex(0xFF752A);
                _submitBtn.clipsToBounds = YES;
        }
        return _submitBtn;
}
@end
